package toss.model;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

/**
 * @author Veselin
 *
 */
public class SearchItem {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;
	
	@Persistent
	private String name;
	@Persistent
	private int numberOfHits;
	
	public SearchItem(){}
	
	public SearchItem(String name, int numberOfHits) {
		this.name = name;
		this.numberOfHits = numberOfHits;
	}

	public SearchItem(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public int getNumberOfHits() {
		return numberOfHits;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setNumberOfHits(int numberOfHits) {
		this.numberOfHits = numberOfHits;
	}

}

